<template>
    <div class="notFound-bg">
        <div class="container">
            <header class="title">
                <p>你访问的页面不存在!</p>
            </header>
            <main>
                <button type="button" class="back" @click="back">返回上一页</button>
            </main>
        </div>
    </div>
</template>

<script>
    export default {
        methods : {
            back(){
                this.$router.go(-2)
            }
        }
    }
</script>

<style scoped lang="less">
    .notFound-bg{
        overflow:hidden;
        width: 100vw;
        height: 100vh;
        background-image: url("./../assets/images/paopao.jpg");
        background-size: cover;
        background-position: center center;
        text-align: center;
        color:white;
        position:absolute;
        .container{
            width:400px;
            height:200px;
            position:absolute;
            left: 50%;
            top:50%;
            transform: translate(-50%,-50%);
        }
        .title{
            font-size:30px;
            font-weight: bolder;
        }
        .back{
            width: 160px;
            height: 30px;
            font-size: 16px;
            border-radius: 20px;
            display: inline-block;
            background : #3db922;
        }
    }
</style>
